package xin.yangda.poiplus.test.entity;

import lombok.*;
import xin.yangda.poiplus.annotation.Excel;
import xin.yangda.poiplus.annotation.ExcelField;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author yangdaxin
 * @version 创建时间 2019/1/22 14:26
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Excel(value = "订单信息")
public class OrderEntity {
    @ExcelField(title = "订单编号")
    private int id;

    @ExcelField(title = "订单金额")
    private BigDecimal money;

    @ExcelField(title = "商品数量")
    private int goodsCount;

    @ExcelField(title = "商品名称", name = "goods.name")
    private GoodsEntity goods;

    @ExcelField(title = "下单时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
